export class Watch {
    constructor(obj, callback) {
        this.proxy = new Proxy(obj, {
            get(target, key) {
                return target[key];
            },
            set(target, key, value) {
                target[key] = value;
                callback(target);
                console.log("有人修改了值");
                return true;
            },
        });
        return this;
    }
}
